package com.CST.mapper.cst.ys;

import com.CST.dto.ys.HandleDTO;
import com.CST.dto.ys.YsAppealDTO;
import com.CST.entity.ys.YsAppealRecord;
import com.CST.vo.ys.YsAppealRecordVO;
import com.CST.vo.ys.YsHandleVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface YsAppealRecordMapper extends BaseMapper<YsAppealRecord> {

    List<YsAppealRecordVO> pageByUser(YsAppealDTO dto);

    List<YsHandleVO> getAllRecord(HandleDTO dto);

    void updateByNum(YsAppealRecord record);

    Integer selectBySNY(@Param("source") Integer source, @Param("num") Integer num, @Param("yard") Integer yard);
    Integer selectBySN(@Param("source") Integer source, @Param("num") Integer num);
}
